







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Syntax
C# |
---|
[SerializableAttribute] public class OrderedDictionary<TKey, TValue> |
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public Class OrderedDictionary(Of TKey, TValue) |
Visual C++ |
---|
[SerializableAttribute] generic<typename TKey, typename TValue> public ref class OrderedDictionary |
Type Parameters
- TKey
- TValue
The type exposes the following properties.
Public Properties
Name | Description | |
---|---|---|
![]() | Comparer |
Returns the IComparer<T> used to compare keys in this dictionary.
|
![]() | Count |
Returns the number of keys in the dictionary.
(Overrides CollectionBase<(Of <KeyValuePair<(Of <TKey, TValue>)>>)>..::Count.) |
![]() | Item |
Gets or sets the value associated with a given key. When getting a value, if this
key is not found in the collection, then an ArgumentException is thrown. When setting
a value, the value replaces any existing value in the dictionary.
(Overrides DictionaryBase<(Of <TKey, TValue>)>..::Item[([TKey])].) |
![]() | Keys |
Returns a collection of the keys in this dictionary.
(Inherited from DictionaryBase<(Of <TKey, TValue>)>.) |
![]() | Values |
Returns a collection of the values in this dictionary. The ordering of
values in this collection is the same as that in the Keys collection.
(Inherited from DictionaryBase<(Of <TKey, TValue>)>.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() | ICollection<(Of <T>)>..::IsReadOnly | (Inherited from CollectionBase<(Of <T>)>.) |
![]() ![]() | ICollection..::IsSynchronized |
Indicates whether the collection is synchronized.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() ![]() | ICollection..::SyncRoot |
Indicates the synchronization object for this collection.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() ![]() | IDictionary..::IsFixedSize |
Returns whether this dictionary is fixed size. This implemented always returns false.
(Inherited from DictionaryBase<(Of <TKey, TValue>)>.) |
![]() ![]() | IDictionary..::IsReadOnly |
Returns if this dictionary is read-only. This implementation always returns false.
(Inherited from DictionaryBase<(Of <TKey, TValue>)>.) |
![]() ![]() | IDictionary..::Item |
Gets or sets the value associated with a given key. When getting a value, if this
key is not found in the collection, then null is returned. When setting
a value, the value replaces any existing value in the dictionary. If either the key or value
are not of the correct type for this dictionary, an ArgumentException is thrown.
(Inherited from DictionaryBase<(Of <TKey, TValue>)>.) |
![]() ![]() | IDictionary..::Keys |
Returns a collection of all the keys in the dictionary. The values in this collection will
be enumerated in the same order as the (overridden) GetEnumerator method.
(Inherited from DictionaryBase<(Of <TKey, TValue>)>.) |
![]() ![]() | IDictionary..::Values |
Returns a collection of all the values in the dictionary. The values in this collection will
be enumerated in the same order as the (overridden) GetEnumerator method.
(Inherited from DictionaryBase<(Of <TKey, TValue>)>.) |